package com.gainloop.Listeners;

import android.content.Intent;
import android.view.View;

import com.gainloop.GainPage;
import com.gainloop.Adapters.HelpAdapter;

public class HelpDescButtonListener implements View.OnClickListener{
	Long _wishId;
	HelpAdapter _helpAdapter;
	public HelpDescButtonListener(Long wishId,  HelpAdapter helpAdapter){
		
		_wishId=wishId;
		_helpAdapter = helpAdapter;
	}
	
	@Override
	public void onClick(View v) {
		
		//Toast.makeText(_helpAdapter.getContext(), "User Id: "+_user.getId(),
			//	Toast.LENGTH_SHORT).show();
		Intent intent=new Intent(_helpAdapter.getContext(),GainPage.class)
		.putExtra(GainPage.GAIN_ID, _wishId);
		_helpAdapter.getContext().startActivity(intent);
		
	}
}
